package com.czkt.springboot_mybatis_test.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.czkt.springboot_mybatis_test.entity.SysRole;
import com.czkt.springboot_mybatis_test.entity.SysUser;
import com.czkt.springboot_mybatis_test.entity.vo.UserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2024-06-18
 */
public interface ISysUserService extends IService<SysUser> {
    UserRole selectSysUser(String usrName, String usrPassword);


    UserRole selectRoleUser(String usrName);

    List<UserRole> selectSysUserAndRole(String usrName, String roleId, Integer pageIndex, Integer pageSize);

    UserRole selectUsrId(String usrId);

    void toUpdateUser(SysUser sysUser);

    void deleteByUsrId(String usrId);

    void toInsertUser(SysUser sysUser);
}
